package com.milo.mongodb.dto;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

/**
 * @author Milo Lee
 * @date 2021-12-15 21:19
 */
//标记为MongoDB文档
@Document
public class User implements Serializable {

    @Id
    private Long id ;

    @Field(name="user_name")
    private String userName = null;

    private String note = null;
}
